package top.greatxiaozou.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import top.greatxiaozou.pojo.User;

import java.util.Map;

@Repository
@Mapper
public interface UserMapper {

    int registUser(User user);

    User selectUserByName(String username);

    int updateUser(@Param("user") User user,@Param("oldName") String oldName);

}
